package com.example.towSpringBoot.common;

import lombok.Data;

import java.util.UUID;

/**
 * @description: UUID
 * @author: xinTong
 * @create: 2024-01-24 16:29
 **/
@Data
public class RandomNum {

    UUID uuid = UUID.randomUUID();

    String randomNum = uuid.toString();

    String maxCode = randomNum.replaceAll("[^0-9]","");

    String code = maxCode.substring(0,4);
}
